package com.gdssoft.pdaweb.dao.impl;

/*
 *  捷达世软件(深圳)有限公司
 *  Copyright (C) 2008-2010 ShenZhen JieDaShi Software Limited Company.
 */

import com.gdssoft.core.dao.impl.BaseDaoImpl;
import com.gdssoft.pdaweb.dao.CheckTaskDao;
import com.gdssoft.pdaweb.model.CheckTask;

@SuppressWarnings("unchecked")
public class CheckTaskDaoImpl extends BaseDaoImpl<CheckTask> 
implements CheckTaskDao {

	public CheckTaskDaoImpl() {
		super(CheckTask.class);
	}

	@Override
	public CheckTask getByUniqueKey(Long assignmentId, Long taskId) {
		String hql="from CheckTask ct where ct.assignmentId=? and ct.taskId=?";
		return (CheckTask)findUnique(hql, new Long[]{assignmentId,taskId});
	}
}
